program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  x0, y0, x1, y1, r, d : integer;
  a, a1, b, b1, c, c1 : real;
begin

  readln (x0, y0, x1, y1, r);
  d:=(x1-x0)*(x1-x0)+(y1-y0)*(y1-y0);

  b:=(r*(y1-y0)+(x1-x0)*sqrt(d-r*r))/d;
  a:=(r*(x1-x0)-(y1-y0)*sqrt(d-r*r))/d;
  c:=-a*x0-b*y0;
  writeln('a1:', a:0:3);
  writeln('b1:', b:0:3);
  writeln('c1:', c:0:3);
  writeln(' ');

  b1:=(r*(y1-y0)-(x1-x0)*sqrt(d-r*r))/d;
  a1:=(r*(x1-x0)+(y1-y0)*sqrt(d-r*r))/d;
  c1:=-a1*x0-b1*y0;
  writeln('a2:', a1:0:3);
  writeln('b2:', b1:0:3);
  writeln('c2:', c1:0:3);
  readln;

end.
 